package com.okRPC.serialization;

import java.io.IOException;

/**
 * Description: This is a sample class.
 * Author: Simon
 * Date: 2023/10/10
 */
public interface RpcSerialization {
    <T> byte[] serialize(T obj) throws Exception;

    <T> T deSerialize(byte[] data,Class<T> clazz) throws IOException;
}
